package net.lanelife.casino.cms.web.controller;

import net.lanelife.casino.caipiao.dto.admin.BankCreateDTO;
import net.lanelife.casino.caipiao.dto.admin.BankDTO;
import net.lanelife.casino.caipiao.dto.admin.BankTable;
import net.lanelife.casino.caipiao.dto.admin.BankUpdateDTO;
import net.lanelife.casino.caipiao.entity.Bank;
import net.lanelife.casino.caipiao.service.api.IBankService;
import net.lanelife.casino.cms.web.controller.support.CRUDController;
import net.lanelife.casino.common.service.support.IGenericService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = BankController.PATH)
public class BankController extends CRUDController<Bank, Integer, BankDTO, BankCreateDTO, BankUpdateDTO, BankTable<BankDTO>> {
	
	public static final String PATH = "/bank";
	
	public BankController() {
		super(PATH);
	}

	@Autowired
	private IBankService bankService;
	
	@Override
	protected IGenericService<Bank, Integer> getService() {
		return bankService;
	}

}
